package top.hidoctor.auscultation.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import top.hidoctor.auscultation.R;
import top.hidoctor.auscultation.bean.YangbenBean;

public class ExampleChooseAdapter extends BaseQuickAdapter<YangbenBean.ResultBean> {
    public ExampleChooseAdapter(int layoutResId, List<YangbenBean.ResultBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, YangbenBean.ResultBean item) {
        helper.setText(R.id.tv_no, item.getNo())
                .setText(R.id.tv_tiwei, item.getPosition())
                .setText(R.id.tv_peihe, item.getCoordinate())
                .setBackgroundRes(R.id.ll_content, item.isCheck() ? R.drawable.bg_gray_8_2 : R.drawable.bg_white_8);

    }
}
